﻿ 
using System.Collections.Generic; 
using NTTDATA.BEENChina.ResultCertification.Config;
using NTTDATA.BEENChina.ResultCertification.model;

namespace NTTDATA.BEENChina.ResultCertification.DataStore
{
    public interface ICagetoryConfig
    {
        /// <summary>
        /// 得到category 对应的基本设定表的内容
        /// </summary>
        /// <param name="categoryId"></param>
        /// <returns></returns>
        CategoryConfig GetCagetoryConfig(string categoryId); 

        /// <summary>
        /// 设定category 对应的基本设定表的内容
        /// </summary>
        /// <param name="categoryConfig"></param>
        /// <returns></returns>
        int SetCagetoryConfig(CategoryConfig categoryConfig);


        /// <summary>
        /// 删除 category 对应的全部检查类
        /// </summary>
        /// <param name="categoryId"></param>
        /// <returns></returns>
        int RemoveCategoryVerfities(string categoryId);

        /// <summary>
        /// 增加 category 对应的检查类
        /// </summary>
        /// <param name="categoryId"></param>
        /// <param name="verfityItems"> </param>
        /// <returns></returns>
        int AddCategoryVerfities(string categoryId, IEnumerable<VerfityItem> verfityItems);

        /// <summary>
        /// 得到 category 对应的检查类
        /// </summary>
        /// <param name="categoryId"></param>
        /// <returns></returns>
        IEnumerable<VerfityItem> GetCategoryVerfitys(string categoryId ); 

        /// <summary>
       /// 得到一个类别的category
        /// </summary>
        /// <param name="categoryType"></param>
        /// <returns></returns>
       IEnumerable<CategoryConfig> GetCagetoryConfigs(EnumCategoryType categoryType);


       /* /// <summary>
        /// 得到检查项目适合的fields
        /// 对category 进行checker时 判断是不是有fileds对应
        /// </summary>
        /// <param name="categoryId"></param>
        /// <param name="verfityClass"> </param>
        /// <returns></returns>
        IEnumerable<string> GetIncludeFields(string categoryId,string verfityClass);*/
    }
}
